contingency tables and probability